package package06章_面向对象编程_基础._08constructor;/**
 * ClassName: PersonTest
 * Package: package06章_面向对象编程_基础._08constructor
 * Description:
 *
 * @Author lys
 * @Create 2024/2/17 10:31
 * @Version 1.0
 */

import java.util.Scanner;

/**
 * @author lys
 * @version 1.0
 * @description: TODO
 * @date 2024/2/17 10:31
 */
public class PersonTest {
    public static void main(String[] args) {
        Person p1 = new Person();

        p1.eat();

        Person p2 = new Person(1);
        System.out.println(p2.age); //1


        Scanner scan = new Scanner(System.in);

    }
}
